package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.comboBox.NxComboBox;
	import newx.com.control.text.NxLabel;
	
	public class EscortUI extends BaseUI
	{
		public var currLabel:NxLabel;
		public var bg:MovieClip;
		public var yabiaobg:MovieClip;
		public var mc1:MovieClip;
		public var mc2:MovieClip;
		public var mc3:MovieClip;
		public var mc4:MovieClip;
		public var biaoshibg:MovieClip;
		
		public var p1	:NxClip;
		public var p2	:NxClip;
		public var p3	:NxClip;
		public var p4	:NxClip;
		public var p5	:NxClip;
		
		public var name1:NxLabel;
		public var name2:NxLabel;
		public var name3:NxLabel;
		public var name4:NxLabel;
		public var name5:NxLabel;
		
//		public var back0			:MovieClip;
//		public var back1			:MovieClip;
//		public var back2			:MovieClip;
//		public var back3			:MovieClip;
		public var titleBack1		:MovieClip;
		public var titleBack2		:MovieClip;
		public var titleBack3		:MovieClip;
		public var line			:MovieClip

		
		public var friendLabel		:NxLabel;
		public var timeLabel		:NxLabel;
		public var moneyLabel		:NxLabel;
		public var infoLabel		:NxLabel;
		public var friendInfoLabel	:NxLabel;
		public var titleLabel1		:NxLabel;
		public var titleLabel2		:NxLabel;
		public var titleLabel3		:NxLabel;
		public var heroLabel		:NxLabel;
		public var heplInfo		:NxLabel;
		
		public var refhBtn			:NxButton;
		public var sendBtn			:NxButton;
		public var friendBtn		:NxButton;
		public var heroHelpBtn		:NxButton;
		public var chooseHeroBtn	:NxButton;
		
		public var friendBox:NxComboBox;
		
		public var helpnameLab:NxLabel;
		
		private static var _self:EscortUI;
		private var _myLogic:EscortLogic;
		public function EscortUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		public static function getInstance():EscortUI
		{
			if(_self == null)
			{
				_self	=	new EscortUI();
			}
			return _self;
		}
		override public function Init():void
		{
			windowBG.x	=	windowBG.x - 50;
			windowBG.y	=	windowBG.y - 57;
			_myLogic	=	EscortLogic.getInstance();
		}
		override protected function AfterHide():void
		{
			_myLogic.removeListener();
		}
		override protected function BeforeShow():void
		{
			_myLogic.addListener();
		}
			
	}
}